package com.ib.review.pojo.vo;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.ArrayList;
import java.util.List;
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class HeaderNode {
    String label;
    List<HeaderNode> children = new ArrayList<>();

    public HeaderNode(String label) {
        this.label = label;
    }

    public void addChild(HeaderNode child) {
        this.children.add(child);
    }
}
